<template>
  <div class="article-detail-header">
    <p class="article-detail-header-title ellipsis1">
      关于字符编码，你所需要知道的（ASCII,Unicode,Utf-8,GB2312…）
    </p>
    <p class="article-detail-header-other">
      <span>
        <i class="el-icon-third-date" />
        <span>发表于&nbsp;2019-04-15</span>
      </span>
      <el-divider direction="vertical" />
      <span>
        <i class="el-icon-third-update" />
        <span>更新于&nbsp;7&nbsp;个月前</span>
      </span>
      <el-divider direction="vertical" />
      <span>
        <i class="el-icon-third-guidang" />
        <router-link to="#">Java</router-link>
      </span>
    </p>
    <p class="article-detail-header-other">
      <span>
        <i class="el-icon-third-word" />
        <span>字数统计：8.8k</span>
      </span>
      <el-divider direction="vertical" />
      <span>
        <i class="el-icon-third-shijian" />
        <span>阅读时长：27分钟</span>
      </span>
    </p>
    <p class="article-detail-header-other article-detail-header-tag">
      <el-tag type="danger" effect="dark">转载</el-tag>
      <span>作者昵称</span>
    </p>
  </div>
</template>

<script>
export default {
  name: "ArticleDetailHeader",
};
</script>

<style lang="stylus" scoped>
.article-detail-header {
  color: white;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.article-detail-header p {
  width: 80%;
  text-align: center;
}

.article-detail-header-other, .article-detail-header-other i[class*='el-icon-third-'], .article-detail-header-other a {
  color: white;
  font-size: 0.14rem;
}

.article-detail-header-other a:hover {
  color: var(--colorLevel1);
  text-decoration: underline;
}

.article-detail-header-other i[class*="el-icon-third-"] {
  margin-right: 0.05rem;
}

.article-detail-header-title {
  font-size: 0.35rem;
  line-height: 0.8rem;
}

.article-detail-header-tag {
  padding: 0.1rem 0;
}

.el-tag {
  font-size: 0.14rem;
  margin-right: 0.2rem;
}
</style>